﻿// JScript 文件
function TopAd()
{
    var strTopAd="";
    if(location=="http://localhost:804/brand.html"||location=="http://new.vancl.com/"||location=="http://www.vancl.com/"||location=="http://www.vancl.com/")
    {
        strTopAd="<div id=adimage style=\"width:950px\">"+
                    "<div id=adBig><a href=\"/zhuanti/free_090403.htm\" "+ 
                    "target=_blank><img title=VANCL购物全场免运费 "+
                    "src=\"http://localhost:804/active/active.jpg\" "+
                    "border=0></A></div>"+
                    "<div id=adSmall style=\"display: none\"><a "+
                    "href=\"/zhuanti/free_090403.htm\" target=_blank><img "+
                    "title=VANCL购物全场免运费 "+
                    "src=\"http://images.vancl.com/NewVancl/top/free/free_980_s.gif\" "+
                    "border=0></A></div></div>";
    }
    else
    {
        strTopAd="<div><a href=\"/zhuanti/free_090403.htm\" target=_blank><img src=\"http://localhost:804/active/active.jpg\" /></a></div>";
    }
    strTopAd+="<div style=\"height:15px; clear:both;overflow:hidden\"></div>";
    return strTopAd;
}
document.write(TopAd());
$(function(){
    setTimeout("showImage();",2000);
    //alert(location);
});
function showImage()
{
    $("#adBig").slideUp(1000,function(){$("#adSmall").slideDown(1000);});
}